﻿<Window x:Class="Demos.MFSets.ChartView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:DVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
        xmlns:converter="clr-namespace:Demos.MFSets"
        Title="Chart" Height="450" Width="650"
        Loaded="WindowLoaded" Name="ventana">
    
    <Window.Resources>
        <converter:AlturaConverter x:Key="myAlturaConverter"></converter:AlturaConverter>
    </Window.Resources>
    
    <Grid>
        <DVC:Chart Canvas.Top="80" Canvas.Left="10" Name="mcChart"
           Width="{Binding ElementName=ventana, Path=ActualWidth}" Height="{Binding ElementName=ventana, Path=ActualHeight, Converter={StaticResource myAlturaConverter}}"
           Background="LightSteelBlue">
            <DVC:Chart.Series>
                <DVC:LineSeries Title="MFSet (Struct)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
                <DVC:LineSeries Title="Naive MFSet (Struct)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
                <DVC:LineSeries Title="PathCompression (Struct)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
                <DVC:LineSeries Title="RankUnion (Struct)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
                <DVC:LineSeries Title="MFSet (Class)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
                <DVC:LineSeries Title="Naive MFSet (Class)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
                <DVC:LineSeries Title="PathCompression (Class)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
                <DVC:LineSeries Title="RankUnion (Class)"
                                IndependentValueBinding="{Binding Path=Key}"
                                DependentValueBinding="{Binding Path=Value}">
                </DVC:LineSeries>
            </DVC:Chart.Series>
        </DVC:Chart>
    </Grid>
</Window>
